package cn.stylefeng.guns.modular.transport.mapper;

import cn.stylefeng.guns.modular.transport.entity.TransportMsg;
import cn.stylefeng.guns.modular.transport.model.params.TransportMsgParam;
import cn.stylefeng.guns.modular.transport.model.result.TransportMsgResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 运输信息表 Mapper 接口
 * </p>
 *
 * @author zhucx
 * @since 2021-08-03
 */
public interface TransportMsgMapper extends BaseMapper<TransportMsg> {

    /**
     * 获取列表
     *
     * @author zhucx
     * @Date 2021-08-03
     */
    List<TransportMsgResult> customList(@Param("paramCondition") TransportMsgParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zhucx
     * @Date 2021-08-03
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TransportMsgParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zhucx
     * @Date 2021-08-03
     */
    Page<TransportMsgResult> customPageList(@Param("page") Page page, @Param("paramCondition") TransportMsgParam paramCondition, @Param("condition") String condition);

    Page<TransportMsgResult> finddriverSigninPageBySpec(@Param("page") Page page, @Param("paramCondition") TransportMsgParam paramCondition, @Param("condition") String condition,@Param("operateId")Long operateId);

    List<TransportMsgResult> finddriverSigninPageBySpec2(@Param("paramCondition") TransportMsgParam paramCondition, @Param("condition") String condition, @Param("operateId")Long operateId);

    Page<TransportMsgResult> finddriverSigninListPageBySpec(@Param("page") Page page, @Param("paramCondition") TransportMsgParam paramCondition, @Param("operateId")Long operateId);

    /**
     * 获取分页map列表
     *
     * @author zhucx
     * @Date 2021-08-03
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TransportMsgParam paramCondition);

	List<TransportMsgResult> findListBySpec(@Param("paramCondition")TransportMsgParam param,@Param("operateId")Long operateId);

	TransportMsgResult findBySpec(@Param("paramCondition")TransportMsgParam param);

	void deleteBySpec(@Param("paramCondition")TransportMsgParam msgParam);

	TransportMsgResult findDcqdBySpec(@Param("paramCondition")TransportMsgParam param, @Param("operateId")Long operateId);

    TransportMsgResult findDcqdByNumSpec(@Param("paramCondition")TransportMsgParam param);

	void updateBySpec(@Param("paramCondition")TransportMsgParam msgParam);

	TransportMsgResult findZuixinBySpec(@Param("paramCondition")TransportMsgParam msgParam);

	Integer countqiandaocheci(@Param("paramCondition")TransportMsgParam msgParam,@Param("operateId")Long operateId);

}
